function toggleImage(element) {
    current = element.src;
    alternate = element.getAttribute("alternate");
    
    element.src = alternate;
    element.setAttribute("alternate",current);
}